package com.lans.binary;

/**
 * @author: lans
 * @date: 2025/2/27
 * @name: 刘宇
 */
public class BinaryTree1 {
    public Node root;

    public void preSelect(){
        if(root!=null){
            this.root.preSelect();
        }else{
            System.out.println("空二叉树");
        }
    }


    public void infixSelect(){
        if(root!=null){
            this.root.infixSelect();
        }else{
            System.out.println("空二叉树");
        }
    }
    public void postSelect(){
        if(root!=null){
            this.root.postSelect();
        }else{
            System.out.println("空二叉树");
        }
    }
}